from evennia import default_cmds
from command import unloggedin


class UnloggedinCmdSet(default_cmds.UnloggedinCmdSet):
    """
    Command set available to the Session before being logged in.  This
    holds commands like creating a new account, logging in, etc.
    """
    key = "DefaultUnloggedin"

    def at_cmdset_creation(self):
        """
        Populates the cmdset.
        """
        # 登入账号命令 <connect>
        self.add(unloggedin.CmdUnLoginConnect())
        # 创建账号命令 <create>
        self.add(unloggedin.CmdUnLoginCreateAccount())
        # 断开系统命令 <quit>
        self.add(unloggedin.CmdUnconnectedQuit())
        # 显示屏幕提示命令 <look>
        self.add(unloggedin.CmdUnLoginLook())

